'use strict';

module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const ProjectSchema = new Schema({
    title: { type: String },
    avatar: { type: String },
    content: { type: String },
    voteCount: { type: Number, default: 0 },
    seq: { type: Number, default: 0 },
    createTime: { type: Date },
  });


  return mongoose.model('Project', ProjectSchema);
};
